package com.ruantu.clothing.dao;

import com.ruantu.clothing.entity.Production;
import com.ruantu.clothing.entity.ProductionDetails;

import java.util.List;
import java.util.Map;

public interface ProductionDetailsMapper {
    int deleteByPrimaryKey(String id);

    int insert(ProductionDetails record);

    int insertSelective(ProductionDetails record);

    ProductionDetails selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ProductionDetails record);

    int updateByPrimaryKey(ProductionDetails record);

    /**
     * 批量插入子表
     *
     * @return
     */
    int insertSome(List<ProductionDetails> list);

    /**
     * 根据商品id查询所有颜色尺码
     *
     * @param
     * @return
     */
    List<ProductionDetails> findByProductionId(String productionId);

    /**
     * 批量删除
     *
     * @param
     * @return
     */
    int delSome(Map<String, Object> map);

    /**
     * 根据款号id 颜色尺码 查询productionDetailsId
     *
     * @param productionDetails
     * @return
     */
    String findIdBy(ProductionDetails productionDetails);

    /**
     * @param
     * @return
     */
    int updateByProductId(ProductionDetails productionDetails);

    /**
     * 根据商品id删除
     *
     * @return
     */
    int delByProduction(String id);
}